Skip to content

fix(graphic): close path in roundRect helper to avoid stroke corner gap#1155

Merged
100pah merged 1 commit intoreleasefrom
fix/roundRect
Apr 29, 2026
Merged

fix(graphic): close path in roundRect helper to avoid stroke corner gap#1155
100pah merged 1 commit intoreleasefrom
fix/roundRect

Conversation

@plainheart
Copy link
Copy Markdown
Collaborator

This fixes apache/echarts#21595

In src/graphic/helper/roundRect.ts, buildPath does not call closePath() at the end.
When stroking with non-square lineCap (e.g. default butt), this can produce a small visual corner gap/notch at the start-end junction.

Reproduction Demo

Before After
image image

@100pah 100pah merged commit cfb1c27 into release Apr 29, 2026
3 checks passed
@100pah 100pah deleted the fix/roundRect branch April 29, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] bar series with border and borderRadius in itemStyle, when set borderRadius like [0,0,0,0], the left-top corner disappear

2 participants